You are here: Define Geology > About > Models > User Calculations
GEOVIA MineSched

User Calculations

You create user calculations to define your own mathematical expressions to target and report on.

User calculations allow you to perform:

Columns in the User Calculations Data Grid

Column Description
Active
  • Selected: The calculation is performed.
  • Cleared: The calculation is not performed.

Tip: When you clear the Active check box, you make the user calculation ineffective without deleting the equation.

Name

The name of the calculation.

Note: The name is case-sensitive and cannot contain spaces.

Expression

The mathematical formula for the calculation.

When you click this field, you see a list of items for Standard codes, Qualities, User parameters, and Common operations that you can use to create the expression.

Standard codes: Codes for parameters of the scenario. Standard codes available are:

  • LENGTH: The length.
  • MASS: The mass.
  • PERIOD_DAYS: The total number of days in the current period.
  • PERIOD_NUM: The period number. Period numbers are integers starting at 1.
  • PERIOD_WORK_DAYS: The number of working days in the current period taking into account the resource working and holiday calendars.
  • SCHEDULE_DAYS: The total number of days from the start of the schedule.
  • VOLUME: The volume.

Qualities: The qualities you defined in the Qualities data grid.

User parameters: The parameters you defined in the User parameters data grid.

Common operations: Common mathematical operators you can include in the expression. Operations available are:

  • + : Addition.
  • - : Subtraction.
  • / : Division.
  • * : Multiplication.
  • ( : Used to group parts of the expression, to ensure the calculations in the expression are performed in the correct order.
  • ) : Used to group parts of the expression, to ensure the calculations in the expression are performed in the correct order.

User calculations: If you have already defined other user calculations, the names of the calculations are displayed in the list.

You can create an expression using only the options available in the lists, by keyboard entry, or using a combination of the options in the lists and keyboard entry. Mathematical operations you can include in an expression using keyboard entry are defined and described in the following table.

Expression Description Example Example Result
ABS The absolute value of any real number ABS(-121) 121
CEIL Round a real number up to the nearest integer CEIL(3.2) 4
FLOOR Round a real number down to the nearest integer FLOOR(61.8) 61
NINT Round a real number to the nearest integer NINT(8.547) 9
INT Return the integer part of a real number INT(8.547) 8
FRAC Return the fractional part of a real number INT(8.547) 0.547
LOG Return the natural log of any real number LOG(177147) 12.08
LOG10 Return the log with base 10 of any real number LOG10(100) 2
EXP Return the value of e (Euler's number) to the power of any real number EXP(3) 20.09
SQRT Return the square root of any real number greater than zero SQRT(25) 5
POW Return the value of one number to the power of another number POW(5,3) 125
IIF Return the value based on a conditional statement IIF(3>2,100,0) 100
Comments Any notes you want to make about the user calculation.

See also